<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">商品分类</a></li>
			<li><a href="{:U('AdminProductType/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">新增商品分类</a></li>
		</ul>

		<form class="js-ajax-form" action="" method="post">

			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<notempty name="list">
						<th width="50">{:L('SORT')}</th>
						</notempty>
						<th>分类名称</th>
						<th>创建时间</th>
						<th width="70">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<foreach name="list" item="vo">
				<tr>
					<notempty name="list">
					<td><input name="listorders[{$vo.id}]" class="input input-order" type="text" size="5" value="{$vo.sort}"></td>
					</notempty>
                    <td><b>{$vo.title}</b></td>

					<td>{$vo.create_time}</td>

					<td>
						<a href="{:U('AdminProductType/add',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
						<a href="{:U('AdminProductType/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
					</td>
				</tr>
				</foreach>

                <div class="table-actions">
                    <notempty name="list">
                        <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminProductType/listorders')}">{:L('SORT')}</button>
                    </notempty>
                </div>
			</table>

			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "{:U('AdminPost/index',$formget)}";
			}
		}

	</script>
</body>
</html>